
<ion-tabs [selectedIndex]="index">
    <ion-tab [root]="tab1Root" tabTitle="首页" [tabUrlPath]="'home'" tabIcon="home"></ion-tab>
    <ion-tab [root]="tab2Root" tabTitle="商品" [tabUrlPath]="'goodsList'" tabIcon="goods"></ion-tab>
    <ion-tab [root]="tab3Root" tabTitle="购物车" [tabUrlPath]="'cart'" tabIcon="cart"></ion-tab>
    <ion-tab [root]="tab4Root" tabTitle="我的" [tabUrlPath]="'personCenter'" tabIcon="person"></ion-tab>
</ion-tabs>